package com.fowo.api.model.product;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import javax.validation.constraints.*;
import lombok.Data;

/** 产品采购记录 导入导出辅助模型 */
@Data
public class ProductPurchaseRecordExcelPo {

  @ExcelProperty(value = "所属产品")
  private String productIdName;

  @ExcelIgnore
  @ExcelProperty(value = "所属产品")
  private Long productId;

  @ExcelProperty(value = "供应商")
  private String supplierSupplierName;

  @ExcelIgnore
  @ExcelProperty(value = "供应商")
  private Long supplier;

  @ExcelProperty(value = "采购数量")
  private Integer purchaseNum;

  @ExcelProperty(value = "加工费")
  private java.math.BigDecimal processCost;

  @ExcelProperty(value = "单价")
  private java.math.BigDecimal price;

  @ExcelProperty(value = "运费")
  private java.math.BigDecimal freight;

  @ExcelProperty(value = "是否开票")
  private String isInvoice;

  @ExcelProperty(value = "税率")
  private java.math.BigDecimal taxRate;

  @DateTimeFormat("yyyy年MM月dd日HH:mm:ss")
  @ExcelProperty(value = "实际交货期")
  private java.util.Date deliverDate;
}
